﻿using System;
using System.Collections.Generic;
using System.Text;

namespace System
{
    public class Consts
    {
        #region 正则
        /// <summary>
        /// 数字正则
        /// </summary>
        public const string RegexString = "^[a-zA-Z]+$";

        /// <summary>
        /// 字母(大小写)正则
        /// </summary>
        public const string RegexNumber = "^\\d+$";
        #endregion

        #region 字符类型

        /// <summary>
        /// 数字
        /// </summary>
        public const string CharNumber = "0123456789";

        /// <summary>
        /// 字母
        /// </summary>
        public const string CharLetter = "abcdefghijklmnopqrstuvwxyz";

        /// <summary>
        /// 混合
        /// </summary>
        public const string CharMixture = "abcdefghijklmnopqrstuvwxyz0123456789";
        #endregion

        #region Http访问方式
        public const string GET = "GET";
        public const string POST = "POST";

        #endregion

        #region Mqtt 消息
        //设备
        public const string Device_All = "DIOS/DEVICE";
        public const string DEVICE_AllDetector = "DIOS/DEVICE/Detector";
        public const string DEVICE_AllGenerator = "DIOS/DEVICE/Generator";
        public const string DEVICE_Subsystem = "DIOS/DEVICE/Subsystem";

        //驱动(1个驱动多个设备)
        public const string DRIVER_All = "DIOS/DRIVER";
        public const string DRIVER_AllDetector = "DIOS/DRIVER/Detector";
        public const string DRIVER_AllGenerator = "DIOS/DRIVER/Generator";

        //Channel(1个Channel多个驱动)
        public const string Host_All = "DIOS/Host";
        public const string Host_AllChannel = "DIOS/Host/Channel";

        public const string Notify_All = "DIOS/DEVICE/+/Notify/#";
        public const string Notify = "/Notify/";

        public const string Action = "Action";

        public const string Content_RespTopic = "RespTopic";
        public const string Content_P0 = "P0";

        public const string Device_Context = "CONTEXT";

        public const string CallBack_LoadAllDevice = "CallBack_LoadAllDevice";
        public const string CallBack_Action = "CallBack_Action";

        #endregion
    }
}
